{#
 This Source Code Form is subject to the terms of the Mozilla Public
 License, v. 2.0. If a copy of the MPL was not distributed with this
 file, You can obtain one at https://mozilla.org/MPL/2.0/.
#}

    <div>
      {% for person in hofers %}
        {% if loop.changed(person.date.year) %}
        <details id="year-{{ person.date.year }}">
          <summary><h3 data-accordion-role="tab">{{ person.date.year }}</h3></summary>
        {% endif %}
          {% if not loop.previtem or loop.previtem.quarter_string != person.quarter_string %}
            <h4>{{ person.quarter_string }}</h4>
            <ul class="mzp-u-list-styled">
          {% endif %}
            {% if person.url -%}
              <li><a href="{{ person.url }}" rel="nofollow">{{ person.name }}</a></li>
            {% else -%}
              <li>{{ person.name }}</li>
            {% endif %}
          {% if not loop.nextitem or loop.nextitem.quarter_string != person.quarter_string %}
            </ul>
          {% endif %}
        {% if not loop.nextitem or loop.nextitem.date.year != person.date.year %}
        </details>
        {% endif %}
      {% endfor %}
    </div>
